import {requestService} from "../../../utils/request";

// 查询驱动列表
export function getDriverList(query) {
    return requestService({
        url: '/xiaozhen-system/driver/list',
        method: 'get',
        params: query
    })
}

// 新增驱动
export function addDriver(data) {
    return requestService({
        url: '/xiaozhen-system/driver/add',
        method: 'post',
        data: data
    })
}

// 修改驱动
export function updateDriver(data) {
    return requestService({
        url: '/xiaozhen-system/driver/update',
        method: 'put',
        data: data
    })
}

// 删除驱动
export function delDriver(driverId) {
    return requestService({
        url: '/xiaozhen-system/driver/' + driverId,
        method: 'delete'
    })
}
